package com.movitech.mobile.cz.base.mapper;

import com.movitech.mobile.cz.base.entity.ExtSSupplierRcRelateRsp;
import com.movitech.mobile.cz.base.entity.QualifedSupplierReqVO;
import com.movitech.mobile.cz.base.entity.QualifedSupplierRspVO;
import com.movitech.mobile.cz.base.entity.StarLevelCountRspVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by robie.cao on 2018/5/18.
 */
@Component
@Mapper
public interface SupplierReportMapper {

    Integer qualifiedSupplierCount(QualifedSupplierRspVO qualifedSupplierRspVO);

    Integer qualifiedSupplierCountIncludeClassify(QualifedSupplierRspVO qualifedSupplierRspVO);

    List<QualifedSupplierRspVO> getSupplierCategoryByLevel(@Param("level") Integer level);

    List<QualifedSupplierRspVO> getSupplierCategoryByClassify(@Param("classifys") String[] classifys);


    List<ExtSSupplierRcRelateRsp> qualifiedSupplierDtl(QualifedSupplierReqVO qualifedSupplierReqVO);

    String getSupplierCategoryNames(String[] supplierCategoryIdArr);

    List<StarLevelCountRspVO> levelCount(@Param("rankYear") Integer rankYear, @Param("classifys") List<String> classifys);
    List<StarLevelCountRspVO> levelCountNew(@Param("classifys") List<String> classifys,@Param("regionalCompanyId") String rcId);
}
